home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / documents / video / lurker / vlSetControlLoop.txt < prev   
Encoding:
Text File  |  1996-11-11  |  791 b   |  24 lines

  1.     if (vlHardware != VLHDW_SIRIUS) { // can't set any of this for Sirius
  2.         for (int i = 2; i > 0; --i) {
  3.             t = 0;
  4.             if (0 > vlSetControl(vlServer, vlPath, memNode, VL_OFFSET, &offset)) {
  5.                 if (vlGetErrno() != VLValueOutOfRange) {
  6.                     VLERROR(("inpview: vlSetControl(VL_OFFSET)"));
  7.                     return FALSE;
  8.                 }
  9.                 t++;
  10.             }
  11.  
  12.             if (0 > vlSetControl(vlServer, vlPath, memNode, VL_SIZE, &clip)) {
  13.                 if (vlGetErrno() != VLValueOutOfRange) {
  14.                     VLERROR(("inpview: vlSetControl(VL_SIZE)"));
  15.                     return FALSE;
  16.                 }
  17.                 t++;
  18.             }
  19.             if (!t)     // no errors
  20.                 break;
  21.         }
  22.     }
  23.  
  24.